#include<iostream>

using namespace std;

// function template
template<typename T>
T min(T a, T b, T c)
{
    if(a>b) a=b;
    if(a>c) a=c;
    return a;
}

int main(void)
{
    int a=1, b=2, c=3;
    cout<<min(a, b, c)<<endl;

    long long al=1000000000, bl=2000000000, cl=3000000000;
    cout<<min(al, bl, cl)<<endl;

    return 0;
}